
<script type="text/javascript">
    $(document).ready(function(){

        $('#tinh_2').change(function(){
            var tinh = $('#tinh_2').val();
            chenkq(tinh,back_color,width,fsize);
        });

        $('#ngay_2').change(function(){
            var tinh = $('#tinh_2').val();
            var date = $('#ngay_2').val();
            chenkq(tinh,back_color,width,fsize,date);
        });

    });
</script>

<div class="XSMB_2" style="width:<?php echo $width;?>;border:1px solid #CFCFCF; background: #F5F6F7;">
    <div class="titleXSMB_2" style="margin: 2%;">
        <table width="100%">
            <tr>
                <td>
                    <img src="<?php echo Yii::app()->params['static_url'];?>images/xo-so-10h-icon-NOTE.png" />
                </td>
                <td style="color:#<?php echo $back_color;?>;font-weight:bold; font-size: <?php echo $fsize;?>;">
                    <a href="http://10h.vn" style="color: #<?php echo $back_color;?>;">www.10h.vn</a>
                </td>
            </tr>
            <tr>
                <select name="1" id="tinh_2">

                    <?php foreach($name as $name){?>
                        <option value="<?php echo $name['id'];?>" <?php if($tinh['id']==$name['id']){echo 'selected="selected"';}?> ><?php echo $name['name'];?></option>
                        <?php }?>

                </select>
            </tr>
            <tr>
                <input id="ngay_2" type="date" value="<?php echo $data['ngay_quay'];?>" style="max-width: 100%;">
            </tr>
        </table>
    </div>

    <div class="resultXSMB_2" style="margin:2%;border:1px solid #CFCFCF;">

        <div class="result_title" style="background:#<?php echo $back_color;?>; color:#fff;padding:2%;font-weight:bold;">
            KQXS Miền Bắc
        </div>

        <table width="100%" style="text-align:center" border="1px solid #CFCFCF">
            <tr>
                <td width="25%" style="color:#<?php echo $back_color;?>; font-weight:bold; font-size: <?php echo $fsize;?>; padding : 1%;">
                    Giải đặc biệt
                </td>
                <td width="75%" style="color:#<?php echo $back_color;?>; font-weight:bold; font-size: <?php echo $fsize;?>; padding : 1%">
                    <?php echo $data['giai_dacbiet'];?>
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải nhất
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_nhat'];?>
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải nhì
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_nhi_1'];?>&nbsp;<?php echo $data['giai_nhi_2'];?>
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải ba
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_ba_1'];?>&nbsp;
                    <?php echo $data['giai_ba_2'];?>&nbsp;
                    <?php echo $data['giai_ba_3'];?>&nbsp;
                    <?php echo $data['giai_ba_4'];?>&nbsp;
                    <?php echo $data['giai_ba_5'];?>&nbsp;
                    <?php echo $data['giai_ba_6'];?>&nbsp;
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải tư
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_tu_1'];?>&nbsp;
                    <?php echo $data['giai_tu_2'];?>&nbsp;
                    <?php echo $data['giai_tu_3'];?>&nbsp;
                    <?php echo $data['giai_tu_4'];?>&nbsp;
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải năm
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_nam_1'];?>&nbsp;
                    <?php echo $data['giai_nam_2'];?>&nbsp;
                    <?php echo $data['giai_nam_3'];?>&nbsp;
                    <?php echo $data['giai_nam_4'];?>&nbsp;
                    <?php echo $data['giai_nam_5'];?>&nbsp;
                    <?php echo $data['giai_nam_6'];?>&nbsp;
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải sáu
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_sau_1'];?>&nbsp;
                    <?php echo $data['giai_sau_2'];?>&nbsp;
                    <?php echo $data['giai_sau_3'];?>&nbsp;
                </td>
            </tr>
            <tr>
                <td width="25%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    Giải bảy
                </td>
                <td width="75%" style="font-size: <?php echo $fsize;?>;padding : 1%;">
                    <?php echo $data['giai_bay_1'];?>&nbsp;
                    <?php echo $data['giai_bay_2'];?>&nbsp;
                    <?php echo $data['giai_bay_3'];?>&nbsp;
                    <?php echo $data['giai_bay_4'];?>&nbsp;
                </td>
            </tr>
        </table>
    </div>
    
    <span style="font-size: 12px"><?php echo Yii::app()->params['static_sms'];?></span>
    
    <div id="fb-root" style="float: right;"></div>
        <script>(function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id)) return;
                js = d.createElement(s); js.id = id;
                js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=670383849682676&version=v2.0";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        </script>
        <div class="fb-like" data-href="http://10h.vn/" data-width="<?php echo $width;?>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
    
</div>